ProximityPresentationSession

Represents a session with a mobile credential verifier using device retrieval as per ISO 18013-5.

Throws

If the provided authentication option is not supported.

Types

Link copied to clipboard
data class CredentialRequestInfo(val request: MobileCredentialRequest, val matchedCredentials: List<MobileCredentialMetaData>)
Link copied to clipboard
fun interface OnConnected
Link copied to clipboard
fun interface OnRequestReceived

Callback interface for handling requests received during the session.

Link copied to clipboard
fun interface OnSessionTerminated

Properties

Link copied to clipboard
val deviceEngagement: String

Base64-encoded device engagement string.

Functions

Link copied to clipboard
suspend fun sendResponse(credentialIds: List<String>, activity: Activity, terminateSession: Boolean = false)

Sends a credential presentation response to the verifier.

Link copied to clipboard
suspend fun terminateSession(sessionStatus: SessionStatus = SessionStatus.SessionTermination)

Terminate the session explicitly, send a status code to the holder, and close data transport.